package com.yfp.client.service.impl;

import cn.hutool.core.collection.CollUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yfp.client.domain.TagCombo;
import com.yfp.client.mapper.TagComboMapper;
import com.yfp.client.service.TagComboService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * @description 针对表【tag_combo(套餐标签)】的数据库操作Service实现
 * @createDate 2024-06-20 19:09:23
 */
@Service
public class TagComboServiceImpl extends ServiceImpl<TagComboMapper, TagCombo> implements TagComboService {

    @Resource
    private TagComboMapper tagComboMapper;

    @Override
    public List<TagCombo> listByTagIds(List<String> tagIdlist) {
        if (CollUtil.isEmpty(tagIdlist)){
            return List.of();
        }
        return tagComboMapper.listByIds(tagIdlist);
    }
}




